package com.bzg.autowire.qualifier;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class UserService {

	@Autowired
	@Qualifier("orderService")  //仅注入bean上Qualifier注解为orderService的bean和beanName为orderService的bean
	List<OrderService> orderServiceList;
}
